package com.plian.system.entity.im;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @description: 基金已投项目情况
 * @author: gangan
 * @create: 2020-04-27 11:16
 */
@Data
@TableName("im_fund_invested_project")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "FundInvestedProject对象", description = "基金已投项目情况")
public class FundInvestedProject extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long fundProjectId;

    /**
     * 项目名称
     */
    @ApiModelProperty(value = "项目名称", required = true)
    private String projectName;

    /**
     * 项目投资年份
     */
    @ApiModelProperty(value = "项目投资年份", required = true)
    private String fundInvestedYear;

    /**
     * 投资额
     */
    @TableField(value = "investment",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "投资额", required = true)
    private BigDecimal investment;

    /**
     * 上市进展情况
     */
    @ApiModelProperty(value = "上市进展情况", required = true)
    private String listingProgress;

    /**
     * 收益（或预计收益）
     */
    @TableField(value = "earnings",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = " 收益（或预计收益）")
    private BigDecimal earnings;
}
